<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<mesoBoard.Data.Theme>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <% using (Html.BeginForm()) {%>
    
        <fieldset>
            <legend><%= Html.ThemeImage("themes.png") %> Create Theme</legend>
            
            <dl class="form">
                <dt>Name</dt>
                <dd>
                    <%= Html.TextBox("Name") %>
                    <%= Html.ValidationMessage("Name") %>
                </dd>
            
                <dt>Display Name</dt>
                <dd>
                    <%= Html.TextBox("DisplayName") %>
                    <%= Html.ValidationMessage("DisplayName") %>
                    <label>Name displayed to users</label>
                </dd>
                
                <dt>Folder Name</dt>
                <dd>
                    <%= Html.TextBox("FolderName") %>
                    <%= Html.ValidationMessage("FolderName") %>
                    <label>The theme's folder name inside the "Themes" directory</label>
                </dd>
                
                <dt>Visible to Users</dt>
                <dd>
                    <%= Html.RadioButton("VisibleToUsers", true, true, new { id="VisibleToUsersYes" })%> <label class="inline" for="VisibleToUsersYes">Yes</label>
                    <br />
                    <%= Html.RadioButton("VisibleToUsers", false, new { id = "VisibleToUsersNo" })%> <label class="inline" for="VisibleToUsersNo">No</label>
                    <label>Whether users can pick this theme from their User CP</label>
                </dd>
                
                <dt>Default Theme</dt>
                <dd>
                    <%= Html.CheckBox("SetDefaultTheme", new { id="SetDefaultTheme", value="true"}) %> <label class="inline" for="SetDefaultTheme">Set as default theme</label>
                </dd>
                
                <dt>&nbsp;</dt>
                <dd>
                    <%= Html.SubmitButton("CreateTheme", "Create Theme") %>
                </dd>
                
            </dl>
            
        </fieldset>
    
    <% } %>

</asp:Content>

